package com.aaa.service.imp;

import cn.hutool.db.Entity;
import com.aaa.dao.PersonInfoDao;
import com.aaa.dao.impl.PersonInfoDaoImpl;
import com.aaa.service.PersonInfoServie;

import java.util.List;
import java.util.Map;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2024/7/15 15:09
 * @description：人员信息业务接口实现类
 * @modified By：
 * @version: 1。0
 */
public class PersonInfoServiceImpl implements PersonInfoServie {
    PersonInfoDao personInfoDao = new PersonInfoDaoImpl();
    @Override
    public boolean addPersonInfo(Map map) {
        return personInfoDao.addPersonInfo(map);
    }

    @Override
    public boolean deletePersonInfo(Map map) {
        return personInfoDao.deletePersonInfo(map);
    }

    @Override
    public boolean updatePersonInfo(Map map) {
        return personInfoDao.updatePersonInfo(map);
    }

    @Override
    public List<Entity> findPersonInfo() {
        return personInfoDao.findPersonInfo();
    }

    @Override
    public List<Entity> findAreaInfo() {
        return personInfoDao.findAreaInfo();
    }

    @Override
    public Entity findPersonInfoById(Map map) {
        return personInfoDao.findPersonInfoById(map)  ;
    }
}
